var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ username: String, password: String, name: String, age: Number, phone: Number, email: String, education: String, marriage: Boolean, hobby: String, time: Date });
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('User', schema); // Model.paginate()